package one.stand.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import one.stand.model.GoodSpecModel;

import java.util.Date;
import java.util.List;

/**
 * @author: Hongcj
 * @CreateDate: 2019/7/19 11:25
 * @Description:
 */
@Data
@ApiModel(value = "秒杀")
public class SecKillResponse{
    @ApiModelProperty("秒杀ID")
    private Integer killId;
    @ApiModelProperty("秒杀编号")
    private String killNo;
    @ApiModelProperty("商品Id")
    private Integer goodsId;
    @ApiModelProperty("秒杀开始时间")
    private Date startTime;
    @ApiModelProperty("秒杀结束时间")
    private Date endTime;
    @ApiModelProperty("1：限时秒杀  2：促销秒杀")
    private Integer killType;
    @ApiModelProperty("0:草稿箱 1:正式发布")
    private Integer draftType;
    @ApiModelProperty("单账号最多可购买数")
    private Integer maxPurchase;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("1：删除")
    private Integer isDel;
    @ApiModelProperty("商品库存")
    private Integer goodsNum;

    @ApiModelProperty("商品名称")
    private String goodsName;
    @ApiModelProperty("商品分类")
    private String goodsTypeName;

    @ApiModelProperty("秒杀金额（最低）")
    private Double minKillPrice;

    @ApiModelProperty("原价金额（最低）")
    private Integer minPrice;

    @ApiModelProperty("总销量")
    private Integer totalBuyNum;

    /**
     * 商品规格
     */
    @ApiModelProperty("商品规格")
    private List<GoodSpecModel> goodSpecModelList;
}
